package Work4.Slay_the_Maze.Potions;

import java.util.ArrayList;

import Work4.Slay_the_Maze.Cards.Cards;
import Work4.Slay_the_Maze.Cards.defense;
import Work4.Slay_the_Maze.Monsters.Monster;
import Work4.Slay_the_Maze.Player.Player;

public class Manapotion extends Potions{
	int numvalue=2;
	public Manapotion() {
		super("能量药水",50);
	}
	public void PrintInfo() {
		System.out.println("能量药水：仅本回合，获得"+numvalue+"点能量");
	}
	public void Usepotion(Player player,ArrayList<Monster> monsters) {
		player.setTurnmana(player.getTurnmana()+numvalue);
	}
	public Manapotion(Manapotion other) {
        // 调用父类的构造函数，复制父类属性
        super(other.getName(),other.getValue());
        // 复制 Defense 类的特定属性
        this.numvalue = other.numvalue;
    }

    // 克隆方法
    @Override
    public Potions clone() {
        return new Manapotion(this);  // 使用拷贝构造函数
    }
}
